package com.chw.shop.controller;

import com.chw.common.returnData.ReturnData;
import com.chw.shop.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("area")
public class AreaController {
    @Autowired
    private AreaService areaService;
    @PostMapping("queryArea")
    public ReturnData queryArea(){
        return ReturnData.success(areaService.queryArea());
    }
}
